//
//  BaseCell.m
//  CatMusic
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "BaseTableViewCell.h"



@implementation BaseCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // cell图片
        self.BaseImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.BaseImageView];
        // 歌曲顺序
        self.baseNumberLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.baseNumberLabel];
        // 歌手名字
        self.BaseSingerNameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.BaseSingerNameLabel];
        // 歌曲名字
        self.BaseSongNameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.BaseSongNameLabel];
        
        
        [_BaseImageView release];
        [_baseNumberLabel release];
        [_BaseSingerNameLabel release];
        [_BaseSongNameLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
//    self.BaseImageView.frame = CGRectMake(30, 10, 25, 30);
    self.baseNumberLabel.frame = CGRectMake(30, 8, 25, 48);
    self.BaseSingerNameLabel.frame = CGRectMake(90, 25, 100, 30);
    self.BaseSongNameLabel.frame = CGRectMake(90, 5, 100, 30);
}







- (void)dealloc
{
    [_BaseImageView release];
    [_BaseSingerNameLabel release];
    [_BaseSongNameLabel release];
    [super dealloc];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
